$(document)
		.ready(
				function() {

					/**
					 * when click to [CREATE] button: send data to server to add
					 * new note object
					 * 
					 */
					$(document)
							.on(
									"click",
									"#create",
									function() {
										// get data from DOM
										var subject = $("#subject").val();
										var content = $("#content").val();
										var time = $("#time").val();
										var start = $("#start").val();
										var end = $("#end").val();
										var firstTitle = $("#firstTitle").val();
										var secondTitle = $("#secondTitle")
												.val();
										var note = $("#note").val();
										var status = $("#status").val();
										var commonStatus = $("#commonStatus")
												.val();
										// add to note object
										var noteObj = new Note();
										noteObj.init(subject, content, time,
												start, end, firstTitle,
												secondTitle, note, status,
												commonStatus);
										console.log(noteObj.data);
										// send data to server
										var url = "/administration/Node", type = "POST", dataType = "json", action = "ADD_NOTE";
										$(".load-ajax-ef").show();
										noteObj.sendData(url, type, dataType,
												action, noteObj.data);
										$(".load-ajax-ef").hide();
									});

				});